package edu.iul.daam.rap;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MenuOptionsActivity extends Activity  implements OnClickListener{

	Button buttonarea, buttonpref, buttonpersdata, buttonbackmenu;
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menuoptions);
		
		buttonarea = (Button) findViewById(R.id.menuoptionsbuttonareas);
		buttonarea.setOnClickListener(this);
		buttonpref = (Button) findViewById(R.id.menuoptionsbuttonpref);
		buttonpref.setOnClickListener(this);
		buttonpersdata = (Button) findViewById(R.id.menuoptionsbuttonpersdata);
		buttonpersdata.setOnClickListener(this);
		buttonbackmenu = (Button) findViewById(R.id.menuoptionsbuttonbacktomenu);
		buttonbackmenu.setOnClickListener(this);
	}

	public void onClick(View view) {
		switch(view.getId()){

		case R.id.menuoptionsbuttonareas:
			startActivity(new Intent(this,OptionMenuAreaActivity.class));
			break;
		case R.id.menuoptionsbuttonpref:
			startActivity(new Intent(this,OptionMenuPersonalActivity.class));
			break;
		case R.id.menuoptionsbuttonpersdata:
			startActivity(new Intent(this,OptionMenuPreferencesActivity.class));
			break;
		case R.id.menuoptionsbuttonbacktomenu:
			finish();
			break;
		}
	}
}